home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 49
/
Volume 49 - JOGO DISK .iso
/
Games
/
feverfrenzy-demo.swf
/
scripts
/
DefineSprite_110
/
frame_1
/
DoAction.as
Wrap
Text File
|
2007-09-28
|
2KB
|
79 lines
function aura(onoff)
{
if(onoff)
{
gotoAndStop("aura");
play();
}
else
{
gotoAndStop("no_aura");
}
}
function isEmpty()
{
return mPaciente == null || mPaciente == undefined;
}
function addPaciente(paciente)
{
var _loc3_ = {x:this._xmouse,y:this._ymouse};
this.localToGlobal(_loc3_);
if(!mMouseMask_mc.hitTest(_loc3_.x,_loc3_.y,false))
{
return false;
}
if(!_parent.mClosed_mc.hasPosition())
{
return false;
}
if(mPaciente != null && mPaciente != undefined)
{
if(!(mPaciente.terminouPressao() && _parent.mClosed_mc.hasPosition()))
{
return false;
}
liberaPacienteParaSalao();
if(!_parent.mClosed_mc.hasPosition())
{
return false;
}
}
mPaciente = paciente;
mPaciente.medindoPressao();
mPaciente._x = this._x;
mPaciente._y = this._y - 10;
return true;
}
function liberaPacienteParaSalao()
{
paciente = mPaciente;
liberaPaciente();
_parent.mClosed_mc.arrivePatient(paciente);
}
function liberaPaciente()
{
_parent.mPressure_mc.gotoAndStop(1);
_parent.mDisease_mc.showDisease(mPaciente.getTipo() + 1);
mPaciente = null;
}
function liberaPacienteEx(paciente)
{
if(mPaciente == paciente)
{
_parent.mPressure_mc.gotoAndStop(1);
mPaciente = null;
}
}
function voltaPaciente(paciente)
{
mPaciente = paciente;
_parent.mPressure_mc.gotoAndPlay(1);
}
stop();
var mPaciente;
mMouseMask_mc._visible = false;
if(this._currentframe == 1)
{
mDisease_mc._visible = false;
}